import {
  TableOutlined,
  WarningOutlined,
  FormOutlined,
  DashboardOutlined,
  SmileOutlined,
  ShoppingOutlined,
  AppstoreOutlined,
  TagOutlined,
} from "@ant-design/icons";
import type { MenuDataItem } from "@ant-design/pro-layout";

const asideMenuConfig: MenuDataItem[] = [
  {
    name: "工作台",
    path: "/",
    icon: <DashboardOutlined />,
  },
  {
    name: "表单",
    path: "/form",
    icon: <FormOutlined />,
  },
  {
    name: "列表",
    path: "/list",
    icon: <TableOutlined />,
  },
  {
    name: "菜单管理",
    path: "/system/menu",
    icon: <TableOutlined />,
  },
  {
    name: "结果&异常",
    icon: <WarningOutlined />,
    children: [
      {
        name: "成功",
        path: "/success",
      },
      {
        name: "404",
        path: "/404",
      },
    ],
  },
  {
    name: "商品管理",
    path: "/products",
    icon: <ShoppingOutlined />,
    children: [
      {
        name: "分类管理",
        path: "/products/category",
        icon: <AppstoreOutlined />,
      },
      {
        name: "品牌管理",
        path: "/products/brand",
        icon: <TagOutlined />,
      },
      {
        name: "商品列表",
        path: "/products/product",
        icon: <ShoppingOutlined />,
      },
    ],
  },
  {
    name: "系统配置",
    path: "/system",
    icon: <TagOutlined />,
    children: [
      {
        name: "字典管理",
        path: "/system/dict",
        icon: <AppstoreOutlined />,
      },
      {
        name: "用户管理",
        path: "/system/user",
        icon: <AppstoreOutlined />,
      },
    ],
  },
];

export { asideMenuConfig };
